package com.os.sys.mapper;

/**
 *
 */

public interface UserMapper {

//    @Select("select u.*,r.Power from T_OS_User u left join T_OS_Role r on u.RoleId=r.Id where (email=#{email} or mobileNumber=#{mobileNumber}) and Password=#{pwd} limit 1")
//    @Results(id = "login", value = {
//            @Result(property = "rolePower", column = "Power")
//    })
//    T_OS_User login(@Param("email") String email, @Param("mobileNumber") String mobileNumber, @Param("pwd") String pwd);

//    @Select("select u.*,r.Name as RoleName from T_OS_User u left join T_OS_Role r on u.RoleId=r.Id")
//    @Results(id = "findAllEx", value = {
//            @Result(property = "roleName", column = "RoleName")
//    })
//    List<T_OS_User> findAllEx();

}
